package com.starters.redisson.config;

import java.util.concurrent.TimeUnit;

/**
 * @author wuyijie
 * @className: IDistributedLocker
 * @description: TODO 分布式锁接口
 * @date 2021/6/12 16:50
 */
public interface IDistributedLocker {
    void lock(String key);
    void tryLock(String key) throws InterruptedException;

    void lock(String key, int timeout, TimeUnit timeUnit);


    void unLock(String key);
}
